package com.catchman.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 定时任务表
 * </p>
 *
 * @author CatchMan
 * @since 2019-05-15
 */
@ApiModel(value="SysJob对象", description="定时任务表")
public class SysJob extends Model<SysJob> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "定时任务id")
    @TableId(value = "jid", type = IdType.ID_WORKER_STR)
    private String jid;

    @ApiModelProperty(value = "描述任务")
    private String jobName;

    @ApiModelProperty(value = "任务分组")
    private String groupName;

    @ApiModelProperty(value = "cron表达式")
    private String cron;

    @ApiModelProperty(value = "状态: 0未启动false 1启动true")
    private Boolean status;

    @ApiModelProperty(value = "任务执行方法")
    private String clazzPath;

    @ApiModelProperty(value = "任务其他描述")
    private String jobDescr;

    @ApiModelProperty(value = "创建用户")
    private String createBy;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime created;

    @ApiModelProperty(value = "更新用户")
    private String updateBy;

    @ApiModelProperty(value = "更新时间")
    private LocalDateTime updated;

    public String getJid() {
        return jid;
    }

    public void setJid(String jid) {
        this.jid = jid;
    }
    public String getJobName() {
        return jobName;
    }

    public void setJobName(String jobName) {
        this.jobName = jobName;
    }
    public String getGroupName() {
        return groupName;
    }

    public void setGroupName(String groupName) {
        this.groupName = groupName;
    }
    public String getCron() {
        return cron;
    }

    public void setCron(String cron) {
        this.cron = cron;
    }
    public Boolean getStatus() {
        return status;
    }

    public void setStatus(Boolean status) {
        this.status = status;
    }
    public String getClazzPath() {
        return clazzPath;
    }

    public void setClazzPath(String clazzPath) {
        this.clazzPath = clazzPath;
    }
    public String getJobDescr() {
        return jobDescr;
    }

    public void setJobDescr(String jobDescr) {
        this.jobDescr = jobDescr;
    }
    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }
    public LocalDateTime getCreated() {
        return created;
    }

    public void setCreated(LocalDateTime created) {
        this.created = created;
    }
    public String getUpdateBy() {
        return updateBy;
    }

    public void setUpdateBy(String updateBy) {
        this.updateBy = updateBy;
    }
    public LocalDateTime getUpdated() {
        return updated;
    }

    public void setUpdated(LocalDateTime updated) {
        this.updated = updated;
    }

    @Override
    protected Serializable pkVal() {
        return this.jid;
    }

    @Override
    public String toString() {
        return "SysJob{" +
        "jid=" + jid +
        ", jobName=" + jobName +
        ", groupName=" + groupName +
        ", cron=" + cron +
        ", status=" + status +
        ", clazzPath=" + clazzPath +
        ", jobDescr=" + jobDescr +
        ", createBy=" + createBy +
        ", created=" + created +
        ", updateBy=" + updateBy +
        ", updated=" + updated +
        "}";
    }
}
